import instance from "@/http";

// 学生信息分页
export const  studentPage = (searchParams)=>instance.post('/student/page',searchParams)

// 添加或编辑学生信息
export const addOrUpdate = (studentForm)=>instance.post('/student/addOrUpdate',studentForm)

// 删除学生信息
export const deleteStudent = (id)=>instance.delete('/student/delete/'+id)

// 批量导入
export const importStudent = (form)=>instance.post('/student/import',form)

// 批量导出
export const exportStudent = (searchParams)=>instance.post('/student/export',searchParams,{responseType:"arraybuffer"})